<!-- jQuery 3 -->
<script src="/static/plugins/jquery.min.js"></script>
<!-- moment 2.22.1 -->
<script src="/static/plugins/moment-v2.22.1/moment.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="/static/plugins/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/static/lte/js/adminlte.min.js"></script>
<!-- 弹出层插件layer -->
<script src="/static/plugins/layer-v3.1.0/layer.js"></script>
<!-- Ajax请求插件 -->
<script src="/static/plugins/jquery-sdajax/jquery.sdajax.min.js"></script>
<!-- cookie plugins -->
<script src="/static/plugins/jquery.cookie.js"></script>
<!-- 下拉列表插件 -->
<script src="/static/plugins/bootstrap-select/js/bootstrap-select.min.js"></script>
<script src="/static/plugins/bootstrap-select/js/i18n/defaults-zh_CN.min.js" type="text/javascript"></script>
<!-- 当前主题初始化 -->
<script src="/static/sdtheme/scripts/sdtheme.js"></script>
<!-- 当前产品初始化 -->
<script src="/static/product/scripts/rms.js"></script>

<!-- 自动生成环境选择按钮 -->
<script type="text/javascript">
    $.cookie.raw = true;
    $(function () {


        {{/*$.post({{urlfor "EnvController.Aside"}},function (res) {*/}}
        {{/*    console.log(res["rows"])*/}}
        {{/*    $.each(res["rows"],function (i,item) {*/}}
        {{/*        if (item["Status"] == true) {*/}}
        {{/*            var btns = $("<button></button>").attr({*/}}
        {{/*                type: "button",*/}}
        {{/*                name: "env_one",*/}}
        {{/*                class: "btn btn-block btn-primary",*/}}
        {{/*                id: item["EnvName"],*/}}
        {{/*                title: item["EnvDescript"],*/}}
        {{/*            }).text(item["EnvName"])*/}}
        {{/*            $("#envs").append(btns)*/}}
        {{/*        }*/}}
        {{/*    })*/}}
        {{/*});*/}}

        // 环境按钮触发
        // $("#envs").on("click","button[name=env_one]",
        //     function () {
        //         $("button[name=env_one]").removeClass("active");
        //         $(this).addClass("active");
        //         $.cookie('env',encodeURI($(this).attr('id')),{ expires: 7, path: '/' });
        //         $('#envname').text(this.id)
        //         location.reload()
        //     }
        // );
        // if ($.cookie('env') === undefined) {
        //     $.cookie('env',encodeURI("环境选择"),{ expires: 7, path: '/' });
        //     $('#envname').text("环境选择");
        // }else {
        //     $('#envname').text(decodeURI($.cookie('env')))
        // };
    })
</script>
